package cn.com.simple.learning.designpattern.create.abstractfactory;

/**
 * @author Jianxing.Jia
 * @date 2022/2/7
 * @description 描述信息
 */
public class ProducerFactory {

    public AbstractFactory getFactory(String factoryType) {
        switch (factoryType) {
            case "brand":
                return new BrandCarFactory();
            case "other":
                return new VehicleFactory();
            default:
                return null;
        }
    }
}
